
INCLUDEPATH +=  $$PWD \
                $$PWD/include \
                $$PWD/include/opencv \
                $$PWD/include/opencv2


CONFIG(debug,debug|release){#debug

    macx:{
        # macOS only
        LIBS += -L"$$PWD/lib/macOS" \

    }
    linux-g++:{
        # linux only
        LIBS += -L"$$PWD/lib/linux_x64" \

    }
    win32 {
        # windows only
    contains(QT_ARCH, i386) {
        win32-g++{
            LIBS += -L"$$PWD/lib/mingw_x86" \
            -lopencv_core2413.dll \
            -lopencv_highgui2413.dll \
            -lopencv_imgproc2413.dll  \
            -lopencv_objdetect2413.dll
            src_file = $$PWD/dll/mingw_x86/*.*
        }else{
            LIBS += -L"$$PWD/lib/msvc2015_x86" \
            -lopencv_core2413.dll \
            -lopencv_highgui2413.dll \
            -lopencv_imgproc2413.dll \
            -lopencv_objdetect2413.dll
            src_file = $$PWD/dll/msvc_x86/*.*
        }
    }else{
        # windows only
        win32-g++ {
            LIBS += -L"$$PWD/lib/mingw_x64" \
            -lopencv_core2413.dll \
            -lopencv_highgui2413.dll \
            -lopencv_imgproc2413.dll \
            -lopencv_objdetect2413.dll
            src_file = $$PWD/dll/mingw_x64/*.*
        }else{
            LIBS += -L$$PWD/lib/msvc2015_x64 \
            -lopencv_core2413d \
            -lopencv_highgui2413d \
            -lopencv_imgproc2413d \
            -lopencv_objdetect2413d
        }
    }
  }
}else{#release

    macx:{
        # macOS only
        LIBS += -L"$$PWD/lib/macOS" \

    }
    linux-g++:{
        # linux only
        LIBS += -L"$$PWD/lib/linux_x64" \
    }
    win32:{
   contains(QT_ARCH, i386) {
        # windows only
        win32-g++ {
            LIBS += -L"$$PWD/lib/mingw_x86" \
            -lopencv_core2413.dll \
            -lopencv_highgui2413.dll \
            -lopencv_imgproc2413.dll \
            -lopencv_objdetect2413.dll
            src_file = $$PWD/dll/mingw_x86/*.*
        }else{
            LIBS += -L"$$PWD/lib/msvc2015_x86" \
            -lopencv_core2413.dll \
            -lopencv_highgui2413.dll \
            -lopencv_imgproc2413.dll \
            -lopencv_objdetect2413.dll
            src_file = $$PWD/dll/msvc_x86/*.*
        }
    }else{
        # windows only
        win32-g++ {
            LIBS += -L"$$PWD/lib/mingw_x64" \
            -lopencv_core2413.dll \
            -lopencv_highgui2413.dll \
            -lopencv_imgproc2413.dll \
            -lopencv_objdetect2413.dll
            src_file = $$PWD/dll/mingw_x64/*.*
        }else{
            LIBS += -L$$PWD/lib/msvc2015_x64 \
            -lopencv_core2413 \
            -lopencv_highgui2413 \
            -lopencv_imgproc2413 \
            -lopencv_objdetect2413
        }
    }
  }
}


#QMAKE_CXXFLAGS += -Wno-deprecated-declarations
#QMAKE_CFLAGS += -Wno-deprecated-declarations




